package com.qingcheng.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@FeignClient(name = "service-user")
@Component
public interface ReturnOrderFegin {

    @GetMapping("/user/address/selectByUserName")
    List<Map> selectByUserName(@RequestParam String username);

    @PostMapping("/user/address/updateAddressByUsername")
    void updateAddressByUsername(@RequestBody Map map);

}
